<?php /* Smarty version 2.6.16, created on 2008-07-09 14:30:08
         compiled from admin/tabs/news/list.tmpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'admin/tabs/news/list.tmpl', 5, false),)), $this); ?>
<h3>Новости</h3>

<?php $_from = $this->_tpl_vars['news']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['news'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['news']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['n']):
        $this->_foreach['news']['iteration']++;
 echo $this->_tpl_vars['n']['date']; ?>
<br/>
<?php echo ((is_array($_tmp=$this->_tpl_vars['n']['text'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 160) : smarty_modifier_truncate($_tmp, 160)); ?>

<a href="/admin/news/news_edit?id=<?php echo $this->_tpl_vars['n']['id']; ?>
">[edit]</a>&nbsp;<a href="/admin/news?action=delete&id=<?php echo $this->_tpl_vars['n']['id']; ?>
">[delete]</a><br />
<?php echo $this->_tpl_vars['n']->description; ?>
<br />
<br />
<?php endforeach; endif; unset($_from); ?>

<form method="post" action="/admin/news">
	<input type="hidden" name="action" value="add">
	<input type="submit" value="добавить">
</form>